<%@ page import="com.plan.QuantitiesStat" %>


<div class="splitcontentleft">
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'system', 'error')} required">
		<label for="system">
			<g:message code="quantitiesStat.system.label" default="System" />
			<span class="required-indicator">*</span>
		</label>
		<g:select id="system" name="system" from="${com.plan.Params.findAllByParmType('system')}" 
			optionKey="name" required="" value="${quantitiesStatInstance?.system}" class="many-to-one" style="width:130px;" required=""/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'subProject', 'error')} ">
		<label for="subProject">
			<g:message code="quantitiesStat.subProject.label" default="Sub Project" />
			
		</label>
		<g:textField name="subProject" maxlength="50" value="${quantitiesStatInstance?.subProject}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'subject', 'error')} ">
		<label for="subject">
			<g:message code="quantitiesStat.subject.label" default="Subject" />
			
		</label>
		<g:select id="subject" name="subject" from="${com.plan.Params.findAllByParmType('subject')}" 
			optionKey="name"  value="${quantitiesStatInstance?.subject}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'quantitiesName', 'error')} ">
		<label for="quantitiesName">
			<g:message code="quantitiesStat.quantitiesName.label" default="Quantities Name" />
			
		</label>
		<g:select id="quantitiesName" name="quantitiesName" from="${com.plan.QuantitiesInfo.findAll()}" 
			optionKey="name"  value="${quantitiesStatInstance?.quantitiesName}" class="many-to-one" style="width:170px;"/>
	</div>

	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'spec', 'error')} ">
		<label for="spec">
			<g:message code="quantitiesStat.spec.label" default="Spec" />
			
		</label>
		<g:textField name="spec" maxlength="100" value="${quantitiesStatInstance?.spec}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'unit', 'error')} ">
		<label for="unit">
			<g:message code="quantitiesStat.unit.label" default="Unit" />
			
		</label>
		<g:select id="unit" name="unit" from="${com.plan.Params.findAllByParmType('unit')}" 
			optionKey="name"  value="${quantitiesStatInstance?.unit}" class="many-to-one" style="width:130px;"/>
	</div>
</div>

<div class="splitcontentright">
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'sum', 'error')} ">
		<label for="sum">
			<g:message code="quantitiesStat.sum.label" default="Sum" />
			
		</label>
		<g:field type="number" name="sum" value="${fieldValue(bean: quantitiesStatInstance, field: 'sum')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'creater', 'error')} ">
		<label for="creater">
			<g:message code="quantitiesStat.creater.label" default="Creater" />
			
		</label>
		<g:textField name="creater" maxlength="30" value="${quantitiesStatInstance?.creater}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'status', 'error')} ">
		<label for="status">
			<g:message code="quantitiesStat.status.label" default="Status" />
			
		</label>
		<g:field type="number" name="status" max="2147483647" value="${fieldValue(bean: quantitiesStatInstance, field: 'status')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: quantitiesStatInstance, field: 'remark', 'error')} ">
		<label for="remark">
			<g:message code="quantitiesStat.remark.label" default="Remark" />
			
		</label>
		<g:textArea name="remark" value="${quantitiesStatInstance?.remark}"/>
	</div>
</div>



